package com.constructor;

/**
 * @author ：HBZ
 * @date ：Created in 2020/12/28 10:54
 * @description：
 * @modified By：
 */
public class Parent {
    private String name;

    public Parent() {
        System.out.println("父类-无参构造方法");
    }

    public Parent(String name) {
        System.out.println("父类-有参构造方法");
        this.name = name;
    }
}
